package com.ygou.service;

import java.util.List;
import java.util.Map;

import com.ygou.pojo.Refunds;

public interface RefundsService {
	/**
	 * 获取退款信息列表根据条件
	 * @param createTime
	 * @param isRefund
	 * @return
	 */
	List<Refunds> findrefund(String createTime,Integer isRefund,Integer userid);
	/**
	 * 
	 * @param createTime
	 * @param isRefund
	 * @return
	 */
	List<Refunds> selectByExample(String createTime,Integer isRefund);
	
	/**
	 * 获取 退款详细信息
	 * @param id
	 * @return
	 */
	Refunds selectByPrimaryKey(Integer id);
	
	/**
	 * 退款 、驳回
	 * @param refund
	 * @return
	 */
	boolean refund(Refunds refund);
	/**
	 * 申请退款
	 * @param refund
	 * @return
	 */
	boolean insertRefunds(Refunds refund);
}
